<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="initial-scale=1, maximum-scale=1, user-scalable=no">
    <meta name="format-detection" content="telephone=no">
    <title>FrozenUI Demo</title>
    <link rel="stylesheet" href="../css/frozen.css">
    <link rel="stylesheet" href="../css/font-awesome.css"/>
    <style>
        body{
            background-color: #eee;
        }
        .my-avatar{
            width: 35px;
            height: 35px;
            margin-top: 5px;
        }
        .my-reddot{
            position: relative;

        }
        .my-navs{
            width: 40%;
            height: 30px;
            background-color: #18b4ed;
            font-size: 18px;
            line-height: 30px;
            margin: auto;
            margin-top: 7px;
            /*border: 1px solid white;*/
        }
        .my-nav  .active{
            background-color: #ffffff;

        }
        .qq-blue-c{
            color: #18b4ed;
        }
        .qq-blue-b{
            background-color: #18b4ed;
        }
        .ui-tiled i{
            line-height:0.8;
        }
        .my-menu-box{
            color: #464646;
            font-size: 0.1rem;
        }
        .ui-tiled .active{
            color: #18b4ed;
        }
        .ui-tiled .active >i{
            color: #18b4ed;
        }
        .my-scroller{
            position: absolute;
            left: 0;
            right: 0;
            bottom: 56px;
            top: 45px;
            margin: auto;
        }
        .ui-badge-num{
            margin-top: 26px;
            margin-right: 30px;
        }
        ul>li>div>h5{
            color: #858585;
        }
        .myui-tiled{
            padding: 10px 0;
        }
        .hh{
            height: 15px;
            background-color: #eee;
        }
        .my-loading{
            position: relative;
            width: 100%;
            z-index: 10000;
        }
        .my-loading-ul{
            height: 50px;

        }
        a{
            text-decoration:none;
            color:#464646 ;
        }
        .my-t:after {
            font-family: iconfont!important;
            font-size: 32px;
            line-height: 44px;
            font-style: normal;
            -webkit-font-smoothing: antialiased;
            -webkit-text-stroke-width: .2px;
            display: block;
            color: rgba(0,0,0,.5);
            color: #c7c7c7;
            content: "";
            position: absolute;
            right: 15px;
            top: 50%;
            margin-top: -22px;
            margin-right: -10px;
        }
    </style>
</head>
<body>
<!--头部-->
<header class="ui-header ui-header-positive ui-border-b ">
    <div class="ui-row-flex">
        <div class="ui-col">
            <div  class="my-reddot">
                <div class="ui-avatar-s  my-avater">
                    <span  style="background-image:url(http://b-ssl.duitang.com/uploads/item/201508/11/20150811233725_VKGr2.jpeg)"></span>
                </div>
            </div>
        </div>
        <div class="ui-col ui-col-4">

            <ul class="ui-tiled  my-navs">
                <li>动态</li>
            </ul>

        </div>
        <div class="ui-col ">
            <li>更多</li>
        </div>
    </div>
</header>
<!--脚部-->
<footer class="ui-footer ui-footer-btn ui-btn-group ui-footer-stable">
    <footer class="ui-footer ui-footer-stable ui-border-t">
        <ul class="ui-tiled  my-menu-box">
            <li ><i class="fa fa-2-5x fa-comment-o" style="font-size: 2.5em;"></i><div class="my-menu">消息</div></li>
            <li ><i class="ui-icon-personal"></i><div class="my-menu">联系人</div></li>
            <li class="active"><i class="fa fa-2-5x fa-star-o" style="font-size: 2.5em;"></i><div class="my-menu">动态</div></li>
        </ul>
    </footer>
</footer>
<!--中间-->
<section class="ui-container">
    <div class="ui-selector-content my-scroller ui-scroller" style="display:block">
        <ul class="ui-list ui-border-b ">
            <li style="margin-left: 0">
                <div class="ui-searchbar-wrap ui-border-b" style="width: 100%">
                    <div class="ui-searchbar ui-border-radius">
                        <i class="ui-icon-search"></i>
                        <div class="ui-searchbar-text">大家都在搜：国产航母即将下手</div>
                        <div class="ui-searchbar-input"><input value="" type="tel" placeholder="大家都在搜：国产航母即将下手" autocapitalize="off"></div>
                        <i class="ui-icon-close"></i>
                    </div>
                    <button class="ui-searchbar-cancel">取消</button>
                </div>
            </li>
            <li>
                <div class="ui-row-flex ui-whitespace">
                    <div class="ui-col ui-col">
                        <a href="qqkongjian.html">
                            <i class="ui-icon-emo " style="color: #F7CF4E;text-align: center"></i>
                            <div class="code ui-reddot">好友动态</div>
                        </a>
                    </div>
                    <div class="ui-col ui-col">
                        <i class="ui-icon-pc" style="color: red;text-align: center"></i>
                        <div class="code"style="text-align: center">附近</div>
                    </div>
                    <div class="ui-col ui-col">
                        <a href="Rmb111.html">
                            <i class="ui-icon-hall" style="color: #F7CF4E;text-align: center"></i>
                            <div class="code ui-reddot">兴趣部落</div>
                        </a>
                    </div>
                </div>
            </li>
                <li style="height: 15px;background-color: #eee;margin-left: 0">

                </li>

            <li >
                <div class="ui-avatar">
                    <span style="background-image:url(../img/123.png)"></span>
                </div>
                <div class="ui-list-info ui-border-t my-t" style="border-top: none">
                    <h4 class="ui-nowrap">日迹</h4>
                </div>
                <div class="ui-badge-num">new</div>
            </li>
            <li >
                <div class="ui-avatar">
                    <span style="background-image:url(../img/02.png)"></span>
                </div>
                <div class="ui-list-info ui-border-t my-t">
                    <h4 class="ui-nowrap">看点</h4>
                </div>
            </li>
            <li >
                <div class="ui-avatar">
                    <span style="background-image:url(../img/03.png)"></span>
                </div>
                <div class="ui-list-info ui-border-t my-t">
                    <h4 class="ui-nowrap">动漫</h4>
                </div>
            </li>
            <li>
                <div class="ui-avatar">
                    <span style="background-image:url(../img/04.png)"></span>
                </div>
                <div class="ui-list-info ui-border-t my-t">
                    <h4 class="ui-nowrap">音乐</h4>
                </div>
            </li>
            <li>
                <div class="ui-avatar">
                    <span style="background-image:url(../img/05.png)"></span>
                </div>
                <div class="ui-list-info ui-border-t my-t">
                    <h4 class="ui-nowrap">NOW直播</h4>
                </div>
            </li>
            <li>
                <div class="ui-avatar">
                    <span style="background-image:url(../img/06.png)"></span>
                </div>
                <div class="ui-list-info ui-border-t my-t">
                    <h4 class="ui-nowrap">热门活动</h4>
                </div>
            </li>

        </ul>



    </div>

</section>





<script src="../lib/zepto.min.js"></script>
<script src="../js/frozen.js"></script>
<script type="text/javascript">
    $(function(){
        var scroll = new fz.Scroll('.ui-scroller', {
            scrollY: true,
            bounce:true
        });

        $(".ui-scroller")[0].ontouchend=function() {
            var s = scroll.getComputedPosition();
            scroll.refresh();
            console.log(s);
        }

        console.log(scroll);
//    scrollTo(20)
//infor tell
        $('.my-nav > li').on("tap",function(){
            $('.my-nav > li').removeClass('active');
            $(this).addClass('active');
        });
        console.log($('.my-menu-box > li'))
        //footer
        $('.my-menu-box > li').eq(0).on("tap",function(){
            $('.my-menu-box > li').removeClass('active');
            $(this).addClass('active');
            window.location.href ="qqshou.html";
        });
        $('.my-menu-box > li').eq(1).on("tap",function(){
            $('.my-menu-box > li').removeClass('active');
            $(this).addClass('active');
            window.location.href ="qqlunbo.html";


        });
    });
</script>
</body>
</html>